//
// Created by tanpan on 2018/3/4.
//
#include <stdio.h>

#include "Test1.h"

namespace space1{
    Test1::Test1(int i, int j, int k):name("test1") {
        this->i=i;
        this->j=j;
        this->k=k;
    }

    Test1::~Test1() {
        printf("---------destructor-----------\n");
    }

    void Test1::print() {
        printf("Object Address: %08X\n", this);
        printf("&c = %08X, c = %d\n", &c, c);
        printf("&i = %08X, i = %d\n", &i, i);
        printf("&j = %08X, j = %d\n", &j, j);
        printf("&k = %08X, k = %d\n", &k, k);
    }

    std::string Test1::get_name() {
        return name;
    }

    int Test1::c=5;

}
